<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/3/14
 * Time: 20:38
 */

namespace base;


use think\Config;
use think\Image;

class Url
{
    /**
     * 获取远程图片完整路径
     * @param string $fileName 不含域名的图片路径
     * @return string
     */
    public static function getRemoteImgSrc($fileName)
    {
        $domain = Config::get('IMG_DOMAIN');
        return $domain . 'uploads/' . trim($fileName, '/');
    }
}